<template>
	<view class="content">
		<web-view :src="url" @message="getMessage"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: 'https://chat.sobot.com/chat/h5/v2/index.html?sysnum=0ff69ef1e4e34ab6bb2b5e59bf5e35a4'
			}
		},
		onLoad(options) {
			// this.url = decodeURIComponent(options.url);
		},
		methods: {
			getMessage: function (e) {
				uni.showModal({
					content: JSON.stringify(e.detail),
					showCancel: false
				});
			}
		}
	}
</script>

<style lang="scss">
	
</style>
